package cn.edu.sdjzu.xg.eagle.service;

import cn.edu.sdjzu.xg.eagle.entity.Pagination;
import cn.edu.sdjzu.xg.eagle.entity.Teacher;
import cn.edu.sdjzu.xg.eagle.exception.BysjException;
import cn.edu.sdjzu.xg.eagle.util.Condition;

import java.sql.SQLException;
import java.util.Collection;
import java.util.List;

public interface TeacherServiceInterface {
    boolean add(Teacher teacher)throws SQLException;
    boolean delete(Long teacherId)throws SQLException;
    Teacher find(Long teacherId)throws SQLException;
    Collection<Teacher> findAll(List<Condition> conditionList)throws SQLException, BysjException;
    Collection<Teacher> findAll(List<Condition> conditionList, Pagination pagination)throws SQLException;
}
